package com.example.helloworld;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.v("演示","将要加载布局文件了！" );
        setContentView(R.layout.activity_main);
        Log.v( "演示","加载布局文件完毕了！" );
        testFunc();
    }
    //用于演示debug
    private void testFunc(){
        int sum=0;
        for( int i=1;i<=100;i++){
            sum+=i;
        }
        Log.v("演示","1到100的累加和是:"+sum);
    }

}